'''
数字类型练习
'''

num_1 = 12
num_2 = 2

print("%d * %d = %d" % (num_1, num_2, num_1 * num_2))

num_1 = 365
num_2 = 765

print("%d + %d = %d" % (num_1, num_2, num_1 + num_2))

num = 23 + 32 * 2
print(num)

num = 22 - 8 * 2 + (12 + 2)
print(num)

num = 1.45 * 2
print(num)

num_1 = int(input("请输入一个整数"))
num_2 = int(input("请输入一个整数"))

print("%d * %d = %d" % (num_1, num_2, num_1 * num_2))

num_1 = float(input("请输入一个小数"))
num_2 = float(input("请输入一个小数"))

print("%0.4f * %0.4f = %0.4f" % (num_1, num_2, num_1 * num_2))